package com.zjsystem.spTest;

import com.zjsystem.zjsy.dto.ZjxdOrg;
import com.zjsystem.zjsy.service.ZjxdAssignmentService;
import com.zjsystem.zjsy.service.ZjxdJobInfoService;
import com.zjsystem.zjsy.service.ZjxdOrgService;
import com.zjsystem.zjsy.vo.Node;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;
import java.util.List;

@SpringBootTest
public class StrategicPlan {

    @Resource
    private ZjxdJobInfoService jobInfoService;
    @Resource
    private ZjxdOrgService orgService;
    @Resource
    private ZjxdAssignmentService assignmentService;

    @Test
    public void test1(){
        System.out.println("assignmentService.list() = " + assignmentService.list());
    }

    @Test
    public void test2(){
        List<ZjxdOrg> list = orgService.list();
        Node orgsTree = orgService.getOrgsTree(list);
        System.out.println("orgsTree = " + orgsTree);
    }

}
